package com.wanshi.bookjointproject.controller;

import com.wanshi.bookjointproject.pojo.BookInfo;
import com.wanshi.bookjointproject.service.BookInfoService;
import com.wanshi.bookjointproject.service.serviceImpl.BookInfoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/BookInfo")
public class BookInfoController {

    @Autowired
    BookInfoService bookInfoService;

    @RequestMapping("/getBookInfoList")
    private List<BookInfo> getBookInfoList(){
        List<BookInfo> BookInfoList = bookInfoService.getBookInfoList();
        return BookInfoList;
    }

}
